﻿

using System;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace WCFModel.MessageContract
{
    /// <summary>
    /// 安全基类,WCF消息契约信息
    /// </summary>
    [MessageContract]
    public class SecEntity
    {
        /// <summary>
        /// 应用程序ID
        /// </summary>
        [MessageHeader]
        public Guid AppId { get; set; }

        /// <summary>
        /// 会话ID
        /// </summary>
        [MessageHeader]
        public Guid SessionId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [MessageHeader]
        public Guid UserId { get; set; }
    }
}
